package cn.com.simple.learning.designpattern.structure.adapter;

/**
 * @author Jianxing.Jia
 * @date 2022/2/10
 * @description 描述信息
 */
public class TurkeyAdapter implements Duck {

    private final Turkey turkey;

    public TurkeyAdapter(Turkey turkey) {
        this.turkey = turkey;
    }


    @Override
    public void quack() {
        turkey.gobble();
    }

    @Override
    public void fly() {
        turkey.fly();
    }
}
